<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <h1 id="h1">
      hello <i>jack <b>!!</b> </i>
    </h1>
    <script>
      const h1 = document.getElementById("h1");
      const ha = h1.cloneNode(true);
      document.body.append(ha);

      const hb = h1.cloneNode(false);
      console.log(ha, hb);

      // setTimeout(() => {
      //   h1.remove();
      // }, 3000);
    </script>
  </body>
</html>
